home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / spchauto / data1.cab / Samples / Visual_C++ / SpellCheckerOCX / spellchecker1.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  3.4 KB  |  146 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "spellchecker1.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CSpellChecker
  12.  
  13. IMPLEMENT_DYNCREATE(CSpellChecker, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CSpellChecker properties
  17.  
  18. BOOL CSpellChecker::GetDelphi()
  19. {
  20.     BOOL result;
  21.     GetProperty(0x3e9, VT_BOOL, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CSpellChecker::SetDelphi(BOOL propVal)
  26. {
  27.     SetProperty(0x3e9, VT_BOOL, propVal);
  28. }
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CSpellChecker operations
  32.  
  33. BOOL CSpellChecker::OpenDictionary(LPCTSTR pszMainDictFileName, LPCTSTR pszCustomDictFileName)
  34. {
  35.     BOOL result;
  36.     static BYTE parms[] =
  37.         VTS_BSTR VTS_BSTR;
  38.     InvokeHelper(0x7d1, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  39.         pszMainDictFileName, pszCustomDictFileName);
  40.     return result;
  41. }
  42.  
  43. void CSpellChecker::CloseDictionary()
  44. {
  45.     InvokeHelper(0x7d2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  46. }
  47.  
  48. BOOL CSpellChecker::IsWordExist(LPCTSTR pszWord)
  49. {
  50.     BOOL result;
  51.     static BYTE parms[] =
  52.         VTS_BSTR;
  53.     InvokeHelper(0x7d3, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  54.         pszWord);
  55.     return result;
  56. }
  57.  
  58. void CSpellChecker::AddToChangeAll(LPCTSTR pszFind, LPCTSTR pszReplace)
  59. {
  60.     static BYTE parms[] =
  61.         VTS_BSTR VTS_BSTR;
  62.     InvokeHelper(0x7d4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  63.          pszFind, pszReplace);
  64. }
  65.  
  66. BOOL CSpellChecker::IsCharAlpha(short ch)
  67. {
  68.     BOOL result;
  69.     static BYTE parms[] =
  70.         VTS_I2;
  71.     InvokeHelper(0x7d5, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  72.         ch);
  73.     return result;
  74. }
  75.  
  76. BOOL CSpellChecker::IsCharLower(short ch)
  77. {
  78.     BOOL result;
  79.     static BYTE parms[] =
  80.         VTS_I2;
  81.     InvokeHelper(0x7d6, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  82.         ch);
  83.     return result;
  84. }
  85.  
  86. BOOL CSpellChecker::IsCharUpper(short ch)
  87. {
  88.     BOOL result;
  89.     static BYTE parms[] =
  90.         VTS_I2;
  91.     InvokeHelper(0x7d7, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  92.         ch);
  93.     return result;
  94. }
  95.  
  96. CString CSpellChecker::GetReplacement(LPCTSTR pszWord)
  97. {
  98.     CString result;
  99.     static BYTE parms[] =
  100.         VTS_BSTR;
  101.     InvokeHelper(0x7d8, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  102.         pszWord);
  103.     return result;
  104. }
  105.  
  106. CString CSpellChecker::GetSuggestion(LPCTSTR pszWord, short nSuggestionIndex)
  107. {
  108.     CString result;
  109.     static BYTE parms[] =
  110.         VTS_BSTR VTS_I2;
  111.     InvokeHelper(0x7d9, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  112.         pszWord, nSuggestionIndex);
  113.     return result;
  114. }
  115.  
  116. void CSpellChecker::AddWord(LPCTSTR pszNewWord)
  117. {
  118.     static BYTE parms[] =
  119.         VTS_BSTR;
  120.     InvokeHelper(0x7da, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  121.          pszNewWord);
  122. }
  123.  
  124. void CSpellChecker::AddToIgnoreAll(LPCTSTR pszWord)
  125. {
  126.     static BYTE parms[] =
  127.         VTS_BSTR;
  128.     InvokeHelper(0x7db, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  129.          pszWord);
  130. }
  131.  
  132. CString CSpellChecker::GetLanguageName(LPCTSTR pszDictFileName)
  133. {
  134.     CString result;
  135.     static BYTE parms[] =
  136.         VTS_BSTR;
  137.     InvokeHelper(0x7dc, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  138.         pszDictFileName);
  139.     return result;
  140. }
  141.  
  142. void CSpellChecker::AboutBox()
  143. {
  144.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  145. }
  146.